package com.hsgene.order.persistence;

import com.hsgene.order.domain.OrderPackageDetail;

import java.util.List;

public interface OrderPackageDetailMapper {
    int deleteByPrimaryKey(String id);

    int insert(OrderPackageDetail record);

    int insertSelective(OrderPackageDetail record);

    OrderPackageDetail selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(OrderPackageDetail record);

    int updateByPrimaryKey(OrderPackageDetail record);
    /**
     *根据订单id获取订单套餐详情list
     * @author FX
     * @date 2018/11/8 10:05
     * @param geneticTestingOrderId
     * @return
     */
    List<OrderPackageDetail> getDetailByOrderId(String geneticTestingOrderId);
    /**
     *根据订单id和套餐id更新orderpackagedetail
     * @author FX
     * @date 2018/11/9 11:58
     * @param record
     * @return
     */
    int updateByOrderIdAndPackageIdSelective(OrderPackageDetail record);
    /**
     *根据订单id和套餐id查询
     * @author FX
     * @date 2018/11/27 14:56
     * @param orderPackageDetail
     * @return
     */
    OrderPackageDetail getDetailByOrderIdAndPackageId(OrderPackageDetail orderPackageDetail);
    /**
     *s审核未通过重新上传更新报告信息
     * @author FX
     * @date 2019/1/17 9:34
     * @param orderPackageDetail
     * @return
     */
    void updateDetailReport(OrderPackageDetail orderPackageDetail);
}